/**
 * @description 生成指定长度的随机UUID
 * @param {number} length 长度
 * @returns {string} 指定长度的随机字符串
 */
export default function generateUUID(length = 32) {
	const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
	let result = "";
	for (let i = 0; i < length; i++) {
		result += chars[Math.floor(Math.random() * chars.length)];
	}
	return result;
}
